#直方图数据
import matplotlib.pyplot as plt
#1.准备数据
time = [131, 98, 125, 131, 124, 139, 131, 117, 128, 108, 135, 138, 131, 102, 107, 114, 119, 128, 134, 105]

#2.创建画布
plt.figure(figsize=(20, 8), dpi=80)

#3.绘制图像
group = int(max(time)-min(time)/2)
plt.hist(time, bins=group, density=True)

#plt.xticks(range(min(time), max(time), group))
#4.显示图像
plt.show()